import {Component, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';

@Component({
  selector: 'app-revoke-approve',
  templateUrl: './revoke-approve.component.html'
})
/**
 * @author csw
 * @description:预约-撤销业务共享组件
 * @date 2021-01-28 15:14:11
 */
export class RevokeApproveComponent implements OnInit, OnChanges {
  @Input() revokeApproveDatas: SubscribeApproveParams;
  // 撤销审批内容数据实体类型
  revokeApproveInfo: SubscribeApproveParams = new SubscribeApproveParams();

  constructor() {
  }

  ngOnInit() {
  }

  ngOnChanges(changes: SimpleChanges): void {
    if (changes.revokeApproveDatas) {
      this.revokeApproveInfo = changes.revokeApproveDatas.currentValue;
    }
  }
}

/************revoke approve class*****************/
class SubscribeApproveParams {
  desc: string;
  name: string;
  time: string;
}
